import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { resource } from '@/api/apiModulesType';

// 获取预览文件信息
export function getFileDataInfo(data): AxiosPromise<any[]> {
  return request({
    url: `${resource}/oss/file/date/getFileDataInfo`,
    method: 'post',
    data:data
  });
}
// 获取保存的回调函数
export function resourceOssFileDateOnlineEditor(data): AxiosPromise<any[]> {
  return request({
    url: `${resource}/oss/file/date/onlineEditor`,
    method: 'post',
    data:data
  });
}
export default {
  getFileDataInfo,
  resourceOssFileDateOnlineEditor
};